package cj.web.marriage.domain;
/*
 *  
 *  
*/
import java.io.Serializable;

import cj.web.admin.domain.DataTablePage;

/**
 * 结婚信息提交
 */
public class MarriageTJ extends DataTablePage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7612898761439019871L;
	protected Integer id;
	protected String code;
	protected String man;
	protected String manPhone;
	protected String woman;
	protected String womanPhone;
	protected Integer status;
	protected String createAt;
	protected String addressId;
	
	protected String hash;
	protected String interesting;
	protected String openid;
	
	protected String interestingDesc;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMan() {
		return man;
	}

	public void setMan(String man) {
		this.man = man;
	}

	public String getManPhone() {
		return manPhone;
	}

	public void setManPhone(String manPhone) {
		this.manPhone = manPhone;
	}

	public String getWoman() {
		return woman;
	}

	public void setWoman(String woman) {
		this.woman = woman;
	}

	public String getWomanPhone() {
		return womanPhone;
	}

	public void setWomanPhone(String womanPhone) {
		this.womanPhone = womanPhone;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCreateAt() {
		return createAt;
	}

	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}

	public String getAddressId() {
		return addressId;
	}

	public void setAddressId(String addressId) {
		this.addressId = addressId;
	}

	public String getHash() {
		return hash;
	}

	public void setHash(String hash) {
		this.hash = hash;
	}

	public String getInteresting() {
		return interesting;
	}

	public void setInteresting(String interesting) {
		this.interesting = interesting;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getInterestingDesc() {
		return interestingDesc;
	}

	public void setInterestingDesc(String interestingDesc) {
		this.interestingDesc = interestingDesc;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result
				+ ((addressId == null) ? 0 : addressId.hashCode());
		result = prime * result + ((code == null) ? 0 : code.hashCode());
		result = prime * result
				+ ((createAt == null) ? 0 : createAt.hashCode());
		result = prime * result + ((hash == null) ? 0 : hash.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((interesting == null) ? 0 : interesting.hashCode());
		result = prime * result
				+ ((interestingDesc == null) ? 0 : interestingDesc.hashCode());
		result = prime * result + ((man == null) ? 0 : man.hashCode());
		result = prime * result
				+ ((manPhone == null) ? 0 : manPhone.hashCode());
		result = prime * result + ((openid == null) ? 0 : openid.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		result = prime * result + ((woman == null) ? 0 : woman.hashCode());
		result = prime * result
				+ ((womanPhone == null) ? 0 : womanPhone.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		MarriageTJ other = (MarriageTJ) obj;
		if (addressId == null) {
			if (other.addressId != null)
				return false;
		} else if (!addressId.equals(other.addressId))
			return false;
		if (code == null) {
			if (other.code != null)
				return false;
		} else if (!code.equals(other.code))
			return false;
		if (createAt == null) {
			if (other.createAt != null)
				return false;
		} else if (!createAt.equals(other.createAt))
			return false;
		if (hash == null) {
			if (other.hash != null)
				return false;
		} else if (!hash.equals(other.hash))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (interesting == null) {
			if (other.interesting != null)
				return false;
		} else if (!interesting.equals(other.interesting))
			return false;
		if (interestingDesc == null) {
			if (other.interestingDesc != null)
				return false;
		} else if (!interestingDesc.equals(other.interestingDesc))
			return false;
		if (man == null) {
			if (other.man != null)
				return false;
		} else if (!man.equals(other.man))
			return false;
		if (manPhone == null) {
			if (other.manPhone != null)
				return false;
		} else if (!manPhone.equals(other.manPhone))
			return false;
		if (openid == null) {
			if (other.openid != null)
				return false;
		} else if (!openid.equals(other.openid))
			return false;
		if (status == null) {
			if (other.status != null)
				return false;
		} else if (!status.equals(other.status))
			return false;
		if (woman == null) {
			if (other.woman != null)
				return false;
		} else if (!woman.equals(other.woman))
			return false;
		if (womanPhone == null) {
			if (other.womanPhone != null)
				return false;
		} else if (!womanPhone.equals(other.womanPhone))
			return false;
		return true;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("MarriageTJ [id=").append(id).append(", code=")
				.append(code).append(", man=").append(man)
				.append(", manPhone=").append(manPhone).append(", woman=")
				.append(woman).append(", womanPhone=").append(womanPhone)
				.append(", status=").append(status).append(", createAt=")
				.append(createAt).append(", addressId=").append(addressId)
				.append(", hash=").append(hash).append(", interesting=")
				.append(interesting).append(", openid=").append(openid)
				.append(", interestingDesc=").append(interestingDesc)
				.append("]");
		return builder.toString();
	}
}